package com.baidu.yyb.model;

import com.baidu.yyb.bean.NoteData;
import com.baidu.yyb.bean.UserData;

/**
 * 笔记数据模型
 * @author LiuTong
 */
public interface INoteModel {
    /***
     *
     * @param userData
     * @param onLoginCallback
     */
    void login(UserData userData,OnLoginCallback onLoginCallback);
    void register(UserData userData,OnRegisterListen onRegisterListen);


    UserData getUserDataWithDatabase();
    UserData getUserWithSP();
    NoteData getNoteDataWithKeyWord(String keyWord);
    NoteData getNoteDataWithNoteId(String Id);

    void saveUSerDataWithSp(UserData userData);





    void addNote(NoteData noteData);
    void deleteNote(NoteData noteData);
    void editNote(NoteData noteData);
    void findNote(String keyString);
    void uploadNote(NoteData noteData);
    void downloadNote(NoteData noteData);

    void insertUserData(UserData userData);
    void deleteUserData(UserData userData);
    void editUserData(UserData userData);
    void findUserData(UserData userData);

}
